home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
program
/
ixemlsrc.lha
/
ixemul
/
general
/
crypt.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-12-23
|
2KB
|
69 lines
/* Stubs for crypt functions which may be export restricted by stupid USA
* ITAR (International Trade in Arms Regulations).
*
* To compile a version of the library in the free world (IE outside the USA)
* simply replace this file with the real crypt.c, which should be widely
* available on ftp servers.
*
*/
#define KERNEL
#include <ixemul.h>
#include <unistd.h>
/*
* Return a pointer to static data consisting of the "setting"
* followed by an encryption produced by the "key" and "setting".
*/
char *crypt (const char *key, const char *setting)
{
ix_panic ("This version of ixemul.library does not support encryption/decryption.");
return NULL;
}
/*
* Encrypt (or decrypt if num_iter < 0) the 8 chars at "in" with abs(num_iter)
* iterations of DES, using the the given 24-bit salt and the pre-computed key
* schedule, and store the resulting 8 chars at "out" (in == out is permitted).
*
* NOTE: the performance of this routine is critically dependent on your
* compiler and machine architecture.
*/
int des_cipher (const char *in, char *out, long salt, int num_iter)
{
ix_panic ("This version of ixemul.library does not support encryption/decryption.");
return 0;
}
/*
* Set up the key schedule from the key.
*/
int des_setkey (const char *key)
{
ix_panic ("This version of ixemul.library does not support encryption/decryption.");
return 0;
}
/*
* "encrypt" routine (for backwards compatibility)
*/
int encrypt (char *block, int flag)
{
ix_panic ("This version of ixemul.library does not support encryption/decryption.");
return 0;
}
/*
* "setkey" routine (for backwards compatibility)
*/
int setkey (const char *key)
{
ix_panic ("This version of ixemul.library does not support encryption/decryption.");
return 0;
}